package com.example.repository.test2;

import com.example.pojo.entity.multisource.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/9/20 18:49
 */
@Repository
public interface UserTest2Repository extends JpaRepository<User, Long> {
    User findById(long id);

    User findByUserName(String userName);

    User findByUserNameOrEmail(String username, String email);
}
